package cn.glc.daily.life.common.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 微博登录授权配置
 *
 * @author simon
 * @date 2020/11/25 10:32
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "business.weibo.token")
public class WeiboAuthProperties {

    /**
     * appKey
     */
    private String client_id;
    /**
     * appSecret
     */
    private String client_secret;
    /**
     * 固定值:code
     */
    private String grant_type;
    /**
     * 回调地址
     */
    private String redirect_uri;
    /**
     * 微博授权后,会传递的值
     */
    private String code;

    @Override
    public WeiboAuthProperties clone() {
        try {
            return (WeiboAuthProperties) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
            return null;
        }
    }
}
